<?php
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;


class DefaultDb_Repositories_HandCarrierRepository extends EntityRepository
{     
   
    
    public function getEmailUser($id)
    {
       $cnx = $this->getEntityManager()->getConnection();
       $emailUser = $cnx->executeQuery('SELECT username
                                      FROM users WHERE id='.$id.'');

       return $emailUser;
    } 
   
    
}

?>
